<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table border="1px">
	
	        <tr>
				<td>图片id</td>
				<td>图片所属商品id</td>
				<td>图片</td>
				<td>图片名称</td>
				<th>操作</th>
			</tr>
			<c:forEach items="${requestScope.imgs}" var="img">

			<tr>
				<td>${img.id}</td>
				<td>${img.commodityId}</td>
				<td><img src="<%=path%>/Imgs/${img.imgName}" height="200px" width="200px"/></td>
				<td>${img.imgName}</td>
				<th><input type="button" value="删除"
					onclick="deleteGoods(${img.id})"> <input
					type="button" value="修改" onclick="updateGoods(${img.id})"></th>
			</tr>
		</c:forEach>
	</table>
</body>
</html>